if (import.meta.main) {
  console.log("running as main");
} else {
  console.log("running not as main");
}